home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19960715-19961006 / 000326_news@columbia.edu _Wed Sep 11 15:32:08 1996.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: news@columbia.edu
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30]) by watsun.cc.columbia.edu (8.7.5/8.7.3) with ESMTP id PAA17343 for <kermit.misc@watsun.cc.columbia.edu>; Wed, 11 Sep 1996 15:32:02 -0400 (EDT)
  3. Received: (from news@localhost) by newsmaster.cc.columbia.edu (8.7.5/8.7.3) id PAA13567 for kermit.misc@watsun; Wed, 11 Sep 1996 15:31:50 -0400 (EDT)
  4. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  5. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Re: Open and write on Modem device
  8. Date: 11 Sep 1996 19:31:24 GMT
  9. Organization: Columbia University
  10. Lines: 37
  11. Message-ID: <51742c$l2r@apakabar.cc.columbia.edu>
  12. References: <516u4o$dmi@crchh327.rich.bnr.ca>
  13. NNTP-Posting-Host: watsun.cc.columbia.edu
  14.  
  15. In article <516u4o$dmi@crchh327.rich.bnr.ca>,
  16. Anand Krishnaswamy <anandkr@bnr.ca> wrote:
  17. : Hope someone can help me with this problem:
  18. : Am trying to write C code that can dial out through
  19. : a modem, connected to a tty port, for example,
  20. : /dev/ttyd0p7, on a 10.x system. Whenever I try to
  21. : do an open on this device to write, the open waits, 
  22. : as expected, waiting for a carrier (see man page for open).
  23. : ...
  24. : Bottom line that is required, just to dial a telephone!
  25. : I am able to use kermit to set line to the above device,
  26. : and then do a atdt to the telephone number without any
  27. : problem. I would like to know what I need to do, to
  28. : enable the dialing onto the device. A code segment that 
  29. : can illustrate the required things is very much appreciated.
  30. Then just use C-Kermit itself.  As you know, version 5A(190)
  31. comes with HP-UX 10.x.  You might be able to code your application
  32. as a C-Kermit script program.  If not, you can share the 
  33. communications file descriptor between C-Kermit and your program 
  34. in various ways, including:
  35.  
  36.  . Have your program pass the file descriptor to C-Kermit via
  37.    the "-l" command-line option, e.g.
  38.  
  39.      kermit -l 4
  40.  
  41.  . Have C-Kermit pass the file descriptor to your program.
  42.    The communications file descriptor can be referred to in a
  43.    Kermit script via the variable \v(ttyfd).
  44.  
  45. See the manual, "Using C-Kermit", for details.
  46.  
  47. - Frank